﻿#ifndef SCHEMEDIALOG_H
#define SCHEMEDIALOG_H

#include <QDialog>
#include "infos.h"
namespace Ui {
class SchemeDialog;
}

class SchemeDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SchemeDialog(QWidget *parent = nullptr);
    SchemeDialog(const QString &name,const QList<FATable> currNameInfos,QWidget *parent = nullptr);
    ~SchemeDialog();

    void initUI();
    void updataTabel();
    void updataFoldBtnIcon(bool);
    void setFoldView(bool);
signals:
    void isFoldSignal(bool);

private slots:
    void on_foldBtn_clicked();

private:
    Ui::SchemeDialog *ui;
    const QString m_name;
    const QList<FATable> m_currNameInfos;
};


#endif // SCHEMEDIALOG_H
